package com.ctrip.cap.domain.api;

import java.util.Date;

/**
 * 
 * @author ltyao
 *
 */
public class APIRun {

	private Long apiRunId;
	private String userId;
	private String requestType;
	private String serverIp;
	private String callerIp;
	private String actionTime;
	private String resultCode = "Success";
	private Date callTime = new Date();
	private String env;
	private Long caseInfoId;
	private Long caseId;
	private Integer caseResult = 0;

	private String requestURI;

	public Long getApiRunId() {
		return apiRunId;
	}

	public void setApiRunId(Long apiRunId) {
		this.apiRunId = apiRunId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRequestType() {
		return requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	public String getServerIp() {
		return serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public String getCallerIp() {
		return callerIp;
	}

	public void setCallerIp(String callerIp) {
		this.callerIp = callerIp;
	}

	public String getActionTime() {
		return actionTime;
	}

	public void setActionTime(String actionTime) {
		this.actionTime = actionTime;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public Date getCallTime() {
		return callTime;
	}

	public void setCallTime(Date callTime) {
		this.callTime = callTime;
	}

	public String getEnv() {
		return env;
	}

	public void setEnv(String env) {
		this.env = env;
	}

	public Long getCaseInfoId() {
		return caseInfoId;
	}

	public void setCaseInfoId(Long caseInfoId) {
		this.caseInfoId = caseInfoId;
	}

	public Long getCaseId() {
		return caseId;
	}

	public void setCaseId(Long caseId) {
		this.caseId = caseId;
	}

	public Integer getCaseResult() {
		return caseResult;
	}

	public void setCaseResult(Integer caseResult) {
		this.caseResult = caseResult;
	}

	public String getRequestURI() {
		return requestURI;
	}

	public void setRequestURI(String requestURI) {
		this.requestURI = requestURI;
	}

	@Override
	public String toString() {
		return "APIRun [apiRunId=" + apiRunId + ", userId=" + userId
				+ ", requestType=" + requestType + ", serverIp=" + serverIp
				+ ", callerIp=" + callerIp + ", actionTime=" + actionTime
				+ ", resultCode=" + resultCode + ", callTime=" + callTime
				+ ", env=" + env + ", caseInfoId=" + caseInfoId + ", caseId="
				+ caseId + ", caseResult=" + caseResult + "]";
	}

}
